import React,{Component} from 'react';
import './ContainerItem.css';

class ContainerItem extends Component{
    constructor(props){
        super(props);
        this.state={}
    }

    render() {
        const {title}=this.props;
        return(
            <div className={'containerItem'}>
                <div className={'containerItemHeader'}>
                    {title}
                </div>
                <div className={'containerItemBody'}>
                    {
                        this.props.children
                    }
                </div>
            </div>
        )
    }
}

export default ContainerItem;
